/* 
 * File:   vecs_petsc.h
 * Author: boyan
 *
 * Created on November 18, 2008, 5:53 PM
 */

#ifndef _VECS_PETSC_H
#define	_VECS_PETSC_H

#include <petscvec.h>

typedef struct _vector {
    int Size;
    double *ArrayXYZ;
    Vec VecXYZ;
    int GetXYZtimes;
    int owns_XYZ;
} svector;

typedef struct _scalar {
    int Size;
    double *ArrayF;
    Vec VecF;
    int GetFtimes;
    int owns_F;
} sscalar;


#ifdef	__cplusplus
extern "C" {
#endif




#ifdef	__cplusplus
}
#endif

#endif	/* _VECS_PETSC_H */

